\doxysection{crc16.\+h}
\hypertarget{crc16_8h_source}{}\label{crc16_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/modules/algorithm/crc16.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/modules/algorithm/crc16.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ \_\_CRC16\_H}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ \_\_CRC16\_H}}
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{main_8h}{main.h}}"{}}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#define\ CRC\_START\_16\ 0xFFFF}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#define\ CRC\_START\_MODBUS\ 0xFFFF}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#define\ CRC\_POLY\_16\ 0xA001}}
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ uint16\_t\ crc\_16(\textcolor{keyword}{const}\ uint8\_t\ *input\_str,\ uint16\_t\ num\_bytes);}
\DoxyCodeLine{00010\ uint16\_t\ crc\_modbus(\textcolor{keyword}{const}\ uint8\_t\ *input\_str,\ uint16\_t\ num\_bytes);}
\DoxyCodeLine{00011\ uint16\_t\ update\_crc\_16(uint16\_t\ crc,\ uint8\_t\ c);}
\DoxyCodeLine{00012\ \textcolor{keywordtype}{void}\ init\_crc16\_tab(\textcolor{keywordtype}{void});}
\DoxyCodeLine{00013\ }
\DoxyCodeLine{00014\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
